/* Layout */

const baseRouter = [
  {
    path: '/',
    component: () => import(/* webpackChunkName: "common" */ '@/views/login/index'),
    hidden: true
  },
  {
    path: '/login/:tenantId',
    name: 'login',
    component: () => import(/* webpackChunkName: "common" */ '@/views/login/index'),
    hidden: true
  },
  {
    path: '/forgetPassword/:tenantId',
    name: 'forgetPassword',
    component: () => import(/* webpackChunkName: "common" */ '@/views/forgetPassword/index'),
    hidden: true
  },
  {
    path: '/register/:tenantId',
    name: 'register',
    component: () => import(/* webpackChunkName: "common" */ '@/views/register/index'),
    hidden: true
  },
  {
    path: '/wx/register',
    name: 'wxRegistrer',
    component: () => import(/* webpackChunkName: "common" */ '@/viewThirdparty/register'),
    hidden: true
  },
  {
    path: '/wx/bind',
    name: 'wxBind',
    component: () => import(/* webpackChunkName: "common" */ '@/viewThirdparty/bind'),
    hidden: true
  },
  // 没有匹配跳转404
  { path: '*', redirect: '/404', hidden: true },
  {
    path: '/404',
    component: () => import(/* webpackChunkName: "common" */ '@/views/common/404'),
    hidden: true,
    meta: {
      deleteThis: true
    }
  }
];

export default [
  ...baseRouter
];
